Cloud Architecture Overview
IMPORTANT: How SELF Chain Cloud Worksโ
What SELF Does (Not You)โ
When a user signs up through the SELF Super-App, we automatically:
- โ Provision their private cloud instance
- โ Deploy their SELF Chain node
- โ Set up their private LLM
- โ Configure their decentralized storage
- โ Manage all infrastructure
Users get their cloud automatically. Developers don't provision anything.
What Developers Doโ
As a developer, you:
- ๐จ Build apps that interact with user instances
- ๐จ Access user data (with permission) via APIs
- ๐จ Create experiences using their private LLM
- ๐จ Store data in their sovereign storage
You build on top of the infrastructure, you don't create it.
For Users: Your Private Cloudโ
When you sign up for SELF through our Super-App, you automatically get:
Your Own Private Universeโ
- Dedicated Resources: CPU, memory, and storage just for you
- Private AI Assistant: An LLM that learns from you and never shares your data
- Blockchain Node: Participate in the network and earn rewards
- Sovereign Storage: Your data, encrypted and under your control
Complete Privacyโ
- Your conversations never leave your instance
- Your data is never accessible to SELF or other users
- End-to-end encryption by default
- You own your digital life
Service Tiersโ
Free Tierโ
- Get started with basic resources
- Small but capable AI model
- 10GB storage
- Perfect for personal use
Growth Tier ($XX/month)โ
- More powerful AI models
- 50GB storage
- Faster responses
- Great for creators
Pro Tier ($XX/month)โ
- Premium AI capabilities
- 200GB storage
- Priority performance
- Ideal for professionals
Enterpriseโ
- Custom resources
- Dedicated support
- SLA guarantees
- Built for organizations
For Developers: Building on SELFโ
You Don't Manage Infrastructureโ
SELF handles:
- โ Server provisioning
- โ Docker containers
- โ Cloud accounts
- โ Resource allocation
- โ Scaling
- โ Monitoring
You focus on:
- โ Building great apps
- โ Creating user experiences
- โ Integrating with user instances
- โ Respecting user privacy
How to Build Apps for SELF Usersโ
1. User Authenticationโ
Users log in with their SELF account:
// User authorizes your app
const auth = await SELF.authenticate({
appId: 'your-app-id',
permissions: ['ai:chat', 'storage:read']
});
2. Interact with User's Private LLMโ
// Chat with user's private AI (with permission)
const response = await auth.ai.chat({
message: "Help me plan my day",
context: "productivity"
});
3. Store in User's Sovereign Storageโ
// Save to user's private storage (with permission)
await auth.storage.save({
key: 'app-data',
value: { preferences: {...} },
encrypted: true
});
What You Can Buildโ
โ Apps That Enhance User's AIโ
- Custom AI personalities
- Specialized knowledge bases
- AI-powered tools
- Workflow automation
โ Privacy-Preserving Servicesโ
- Encrypted messaging using user's instance
- Private document analysis
- Secure collaboration tools
- Personal data insights
โ Decentralized Applicationsโ
- Social networks where users own their data
- Content platforms with user sovereignty
- Marketplaces with privacy
- Gaming with persistent user state
What You Cannot Doโ
โ Access Without Permissionโ
- Cannot read user data without explicit consent
- Cannot use their AI without authorization
- Cannot bypass privacy controls
- Cannot see other users' data
โ Provision Infrastructureโ
- Cannot create user instances (SELF does this)
- Cannot manage cloud resources
- Cannot access underlying servers
- Cannot modify user's node
Getting Started as a Developerโ
1. Get Testnet Accessโ
# Request testnet developer account
curl -X POST https://testnet.self.app/developers/register \
-d '{"email": "dev@example.com", "project": "My App"}'
2. Install SDKโ
npm install @selfchain/sdk
3. Build Your First Appโ
import { SELFClient } from '@selfchain/sdk';
const client = new SELFClient({
appId: 'your-app-id',
environment: 'testnet'
});
// Your app interacts with authorized user instances
4. Test Locallyโ
Use our testnet to develop without real users:
- Get test user credentials
- Simulate user interactions
- Test permission flows
- Validate privacy model
Architecture Detailsโ
User Instance Componentsโ
Each user's cloud instance includes:
User's Private Cloud Instance
โโโ SELF Chain Node (Blockchain participation)
โโโ Private LLM (AI assistant)
โโโ OrbitDB (Decentralized database)
โโโ IPFS Node (Distributed storage)
โโโ API Gateway (Secure access point)
Security Boundariesโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ User A's Instance (Isolated) โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ Private LLM โ โ Storage โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โก No Connection โก
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ User B's Instance (Isolated) โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ Private LLM โ โ Storage โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Developer Access Modelโ
Your App โ SELF SDK โ User Authorization โ User's Instance API
โ
Permission Granted
โ
Scoped Access Only
Summaryโ
For Usersโ
- Sign up in SELF Super-App
- Get automatic private cloud
- Own your data and AI
- Complete privacy
For Developersโ
- Build apps on top of user instances
- Use SDK to interact with authorized users
- Respect privacy and permissions
- Focus on user experience, not infrastructure
Remember: SELF provisions and manages all infrastructure. Developers build experiences. Users own their digital lives.
Questions? Join our Developer Discord or check our Developer Guide